<?php
class Canbo extends AppModel {
	var $name = 'Canbo';
	var $validate = array(
		'phuongxa_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
		'tongiao_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
		'dantoc_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
	);
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	var $belongsTo = array(
		'Phuongxa' => array(
			'className' => 'Phuongxa',
			'foreignKey' => 'phuongxa_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Tongiao' => array(
			'className' => 'Tongiao',
			'foreignKey' => 'tongiao_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Dantoc' => array(
			'className' => 'Dantoc',
			'foreignKey' => 'dantoc_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

	var $hasMany = array(
		'Chucvucb' => array(
			'className' => 'Chucvucb',
			'foreignKey' => 'canbo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Dvutcb' => array(
			'className' => 'Dvutcb',
			'foreignKey' => 'canbo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Phanloaicb' => array(
			'className' => 'Phanloaicb',
			'foreignKey' => 'canbo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Quyetdinhttdoancb' => array(
			'className' => 'Quyetdinhttdoancb',
			'foreignKey' => 'canbo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Tgdongdoanphicb' => array(
			'className' => 'Tgdongdoanphicb',
			'foreignKey' => 'canbo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Tgiachidoancb' => array(
			'className' => 'Tgiachidoancb',
			'foreignKey' => 'canbo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Thanhtichcb' => array(
			'className' => 'Thanhtichcb',
			'foreignKey' => 'canbo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Thanhtichkhoacb' => array(
			'className' => 'Thanhtichkhoacb',
			'foreignKey' => 'canbo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

}
